import TianDingPatientComponent from '../../modules/patient'
//论坛
import TianDingPatientForumComponent from '../../modules/patient/forum';
//检测
import TianDingPatientDelectionComponent from '../../modules/patient/detection';
import TianDingPatientDelectionSelectTestItemComponent from '../../modules/patient/detection/selectTestItem';
import TianDingPatientDelectionOverviewComponent from '../../modules/patient/detection/overview';
// import TianDingPatientDelectionTestItemComponent from '../../modules/patient/detection/testItem';
// import TianDingPatientDelectionTestItemPackageComponent from '../../modules/patient/detection/testItemPackage';
//预约
import TianDingPatientReservationComponent from '../../modules/patient/reservation';
import TianDingPatientReservationDetailComponent from '../../modules/patient/reservation/detail/index';
//我的
import TianDingPatientMeComponent from '../../modules/patient/me';
import TianDingPatientMeBaseInfoComponent from "../../modules/patient/me/baseInfo"; //我的资料
import TianDingPatientMeMateInfoComponent from '../../modules/patient/me/mateInfo'; //配偶信息
import TianDingPatientMeOrderComponent from '../../modules/patient/me/order'; //订单管理
import TianDingPatientMeAppointmentRecordComponent from '../../modules/patient/me/appointmentRecord'; //预约记录
import TianDingPatientMeAddressComponent from '../../modules/patient/me/address'; //地址管理
import TianDingPatientMeAddressModifyComponent from "../../modules/patient/me/address/modify"; //新增/修改地址
import TianDingPatientMeMedicalComponent from '../../modules/patient/me/medical'; //病例管理
import TianDingPatientMeUpdatePasswordComponent from '../../modules/patient/me/updatePassword'

import TianDingPatientMeBasicInfoComponent from '../../modules/patient/me/medical/basicInfo'; //基本信息
import TianDingPatientMeCurrentStateComponent from '../../modules/patient/me/medical/currentState'; //目前状态
import TianDingPatientMeMenstrualHistoryComponent from '../../modules/patient/me/medical/menstrualHistory'; //月经史
import TianDingPatientMeBirthHistoryComponent from '../../modules/patient/me/medical/birthHistory'; //生育史
import TianDingPatientMeBirthHistoryModifyComponent from '../../modules/patient/me/medical/birthHistory/modify'; //添加/修改生育史
import TianDingPatientMeMarriageHistoryComponent from '../../modules/patient/me/medical/marriageHistory'; //婚育史
import TianDingPatientMePastHistoryComponent from '../../modules/patient/me/medical/pastHistory'; //既往史
import TianDingPatientMePastHistoryModifyComponent from '../../modules/patient/me/medical/pastHistory/modify'; //添加/修改既往史
import TianDingPatientMeFamilyHistoryComponent from '../../modules/patient/me/medical/familyHistory'; //家族病史
import TianDingPatientMeFamilyHistoryModifyComponent from '../../modules/patient/me/medical/familyHistory/modify'; //添加/修改家族病史
import TianDingPatientMeTestTubeDetailComponent from '../../modules/patient/me/medical/testTubeDetail'; //试管详情
import TianDingPatientMeTestTubeDetailModifyComponent from '../../modules/patient/me/medical/testTubeDetail/modify'; //添加/修改试管详情
import TianDingPatientMeMedicalDetailComponent from '../../modules/patient/me/medical/detail'; //病例详情，下载病例
import TianDingPatientMeMedicalDownloadComponent from '../../modules/patient/me/medical/download';

import TianDingPatientMeDetectionOrderComponent from '../../modules/patient/me/detectionOrder'; //下单检测
import TianDingPatientMeSettingComponent from "../../modules/patient/me/setting"; //设置

import TianDingPatientInfoComponent from "../../modules/patient/info.vue";

const PatientRouter = [{
    path: '/tdPatient',
    name: 'tdPatient',
    component: TianDingPatientComponent,
    meta: {
        title: '患者端'
    },
    redirect: {
        name: 'tdPatientMe'
    },
    children: [{
            path: '',
            name: '',
            component: TianDingPatientMeComponent,
            meta: {
                title: '我的'
            }
        },
        {
            path: 'tdPatientInfo',
            name: 'tdPatientInfo',
            component: TianDingPatientInfoComponent,
            meta: {
                title: '完善信息'
            }
        },
        {
            path: 'tdPatientForum',
            name: 'tdPatientForum',
            component: TianDingPatientForumComponent,
            meta: {
                title: '论坛'
            }
        },
        {
            path: 'tdPatientDelection',
            name: 'tdPatientDelection',
            component: TianDingPatientDelectionComponent,
            meta: {
                title: '检测'
            }
        },
        {
            path: 'tdPatientDelectionSelectTestItem',
            name: 'tdPatientDelectionSelectTestItem',
            component: TianDingPatientDelectionSelectTestItemComponent,
            meta: {
                title: "选择检测项目"
            }
        },
        {
            path: 'tdPatientDelectionOverview',
            name: 'tdPatientDelectionOverview',
            component: TianDingPatientDelectionOverviewComponent,
            meta: {
                title: "项目总览，确认订单"
            }
        },
        {
            path: 'tdPatientReservation',
            name: 'tdPatientReservation',
            component: TianDingPatientReservationComponent,
            meta: {
                title: '预约'
            }
        }, {
            path: 'tdPatientReservationDetail',
            name: 'tdPatientReservationDetail',
            component: TianDingPatientReservationDetailComponent,
            meta: {
                title: '预约详情'
            }
        },
        {
            path: 'tdPatientMe',
            name: 'tdPatientMe',
            component: TianDingPatientMeComponent,
            meta: {
                title: '我的'
            }
        },
        {
            path: 'tdBaseInfo',
            name: 'tdBaseInfo',
            component: TianDingPatientMeBaseInfoComponent,
            meta: {
                title: '我的资料'
            }
        },
        {
            path: 'tdMateInfo',
            name: 'tdMateInfo',
            component: TianDingPatientMeMateInfoComponent,
            meta: {
                title: '配偶信息'
            }
        },
        {
            path: 'tdOrder',
            name: 'tdOrder',
            component: TianDingPatientMeOrderComponent,
            meta: {
                title: '订单管理'
            }
        },
        {
            path: 'tdAppointmentRecord',
            name: 'tdAppointmentRecord',
            component: TianDingPatientMeAppointmentRecordComponent,
            meta: {
                title: "预约记录"
            }
        },
        {
            path: 'tdAddress',
            name: 'tdAddress',
            component: TianDingPatientMeAddressComponent,
            meta: {
                title: '地址管理'
            }
        },
        {
            path: 'tdAddressModify',
            name: 'tdAddressModify',
            component: TianDingPatientMeAddressModifyComponent,
            meta: {
                title: "修改地址"
            }
        },
        {
            path: 'tdUpdatePassword',
            name: 'tdUpdatePassword',
            component: TianDingPatientMeUpdatePasswordComponent,
            meta: {
                title: "修改密码"
            }
        },
        {
            path: 'tdMedical',
            name: 'tdMedical',
            component: TianDingPatientMeMedicalComponent,
            meta: {
                title: '病例管理'
            },
            redirect: {
                name: 'tdPatientMeMedicalBasicInfo'
            },
            children: [{
                    path: "",
                    name: "",
                    component: TianDingPatientMeBasicInfoComponent,
                    meta: {
                        title: "基本信息"
                    }
                },
                {
                    path: "tdPatientMeMedicalBasicInfo",
                    name: "tdPatientMeMedicalBasicInfo",
                    component: TianDingPatientMeBasicInfoComponent,
                    meta: {
                        title: "基本信息"
                    }
                },
                {
                    path: "tdPatientMeMedicalCurrentState",
                    name: "tdPatientMeMedicalCurrentState",
                    component: TianDingPatientMeCurrentStateComponent,
                    meta: {
                        title: "目前状态"
                    }
                },
                {
                    path: "tdPatientMeMedicalMenstrualHistory",
                    name: "tdPatientMeMedicalMenstrualHistory",
                    component: TianDingPatientMeMenstrualHistoryComponent,
                    meta: {
                        title: "月经史"
                    }
                },
                {
                    path: "tdPatientMeMedicalBirthHistory",
                    name: "tdPatientMeMedicalBirthHistory",
                    component: TianDingPatientMeBirthHistoryComponent,
                    meta: {
                        title: "生育史"
                    }
                },
                {
                    path: "tdPatientMeMedicalBirthHistoryModify",
                    name: "tdPatientMeMedicalBirthHistoryModify",
                    component: TianDingPatientMeBirthHistoryModifyComponent,
                    meta: {
                        title: "编辑生育史"
                    }
                },
                {
                    path: "tdPatientMeMedicalMarriageHistory",
                    name: "tdPatientMeMedicalMarriageHistory",
                    component: TianDingPatientMeMarriageHistoryComponent,
                    meta: {
                        title: "婚育史"
                    }
                },
                {
                    path: "tdPatientMeMedicalPastHistory",
                    name: "tdPatientMeMedicalPastHistory",
                    component: TianDingPatientMePastHistoryComponent,
                    meta: {
                        title: "既往史"
                    }
                },
                {
                    path: "tdPatientMeMedicalPastHistoryModify",
                    name: "tdPatientMeMedicalPastHistoryModify",
                    component: TianDingPatientMePastHistoryModifyComponent,
                    meta: {
                        title: "修改既往史"
                    }
                },
                {
                    path: "tdPatientMeMedicalFamilyHistory",
                    name: "tdPatientMeMedicalFamilyHistory",
                    component: TianDingPatientMeFamilyHistoryComponent,
                    meta: {
                        title: "家族病史"
                    }
                },
                {
                    path: "tdPatientMeMedicalFamilyHistoryModify",
                    name: "tdPatientMeMedicalFamilyHistoryModify",
                    component: TianDingPatientMeFamilyHistoryModifyComponent,
                    meta: {
                        title: "修改家族病史"
                    }
                },
                {
                    path: "tdPatientMeMedicalTestTubeDetail",
                    name: "tdPatientMeMedicalTestTubeDetail",
                    component: TianDingPatientMeTestTubeDetailComponent,
                    meta: {
                        title: "试管详情"
                    }
                },
                {
                    path: 'tdPatientMeMedicalTestTubeDetailModify',
                    name: 'tdPatientMeMedicalTestTubeDetailModify',
                    component: TianDingPatientMeTestTubeDetailModifyComponent,
                    meta: {
                        title: '修改试管详情'
                    }
                },
                {
                    path: "tdPatientMeMedicalDetail",
                    name: "tdPatientMeMedicalDetail",
                    component: TianDingPatientMeMedicalDetailComponent,
                    meta: {
                        title: '生成病例'
                    }
                },
                {
                    path: 'tdPatientMeMedicalDownload',
                    name: 'tdPatientMeMedicalDownload',
                    component: TianDingPatientMeMedicalDownloadComponent,
                    meta: {
                        title: "下载病例"
                    }
                }
            ]
        },
        {
            path: 'tdDetectionOrder',
            name: 'tdDetectionOrder',
            component: TianDingPatientMeDetectionOrderComponent,
            meta: {
                title: '下单检测'
            }
        },
        {
            path: 'tdSetting',
            name: 'tdSetting',
            component: TianDingPatientMeSettingComponent,
            meta: {
                title: '设置'
            }
        }
    ]
}];

export default PatientRouter;